// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.

package org.jetbrains.kotlin.idea.k2.copyright;

import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.idea.base.plugin.KotlinPluginMode;
import org.jetbrains.kotlin.idea.base.test.TestRoot;
import org.jetbrains.kotlin.idea.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.idea.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;

/**
 * This class is generated by {@link org.jetbrains.kotlin.testGenerator.generator.TestGenerator}.
 * DO NOT MODIFY MANUALLY.
 */
@SuppressWarnings("all")
@TestRoot("copyright/fir-tests")
@TestDataPath("$CONTENT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@TestMetadata("../tests/testData/update")
public class FirUpdateKotlinCopyrightTestGenerated extends AbstractFirUpdateKotlinCopyrightTest {
    @java.lang.Override
    @org.jetbrains.annotations.NotNull
    public final KotlinPluginMode getPluginMode() {
        return KotlinPluginMode.K2;
    }

    private void runTest(String testDataFilePath) throws Exception {
        KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
    }

    @TestMetadata("classDocComment.kt")
    public void testClassDocComment() throws Exception {
        runTest("../tests/testData/update/classDocComment.kt");
    }

    @TestMetadata("empty.kt")
    public void testEmpty() throws Exception {
        runTest("../tests/testData/update/empty.kt");
    }

    @TestMetadata("multiComments.kt")
    public void testMultiComments() throws Exception {
        runTest("../tests/testData/update/multiComments.kt");
    }

    @TestMetadata("noPackage.kt")
    public void testNoPackage() throws Exception {
        runTest("../tests/testData/update/noPackage.kt");
    }

    @TestMetadata("script.kts")
    public void testScript() throws Exception {
        runTest("../tests/testData/update/script.kts");
    }

    @TestMetadata("scriptWithShebang.kts")
    public void testScriptWithShebang() throws Exception {
        runTest("../tests/testData/update/scriptWithShebang.kts");
    }

    @TestMetadata("scriptWithShebangAndComment.kts")
    public void testScriptWithShebangAndComment() throws Exception {
        runTest("../tests/testData/update/scriptWithShebangAndComment.kts");
    }

    @TestMetadata("simple.kt")
    public void testSimple() throws Exception {
        runTest("../tests/testData/update/simple.kt");
    }
}
